package com.dongdongshop.service;

import com.dongdongshop.pojo.TbOrder;
import com.dongdongshop.pojo.TbOrderItem;
import com.dongdongshop.vo.OrderNumVO;
import com.dongdongshop.vo.OrderVO;

import java.util.List;
import java.util.Map;

public interface OrderService {
    Map<String,String> submitOrder(TbOrder order, Long id);

    boolean updateByOrderNum(String out_trade_no, String trade_no,String status);

    List<OrderVO> getInfoByUserId(String username);

    boolean removeById(long itemId);

    List<TbOrderItem> selectAll(String out_trade_no);

    boolean updateByStatus(String out_trade_no);

    boolean updateByOrderNumAndStatus(String out_trade_no);

    TbOrder getOrderNum(String orderNum);

    void getMQ(OrderNumVO numVO);
}
